package cn.wolfcode.wms.query;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import cn.wolfcode.wms.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class StockOutcomeBillQueryObject extends QueryObject{

	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date beginDate;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endDate;
	
	private long clientId = -1;
	private long depotId = -1;
	private int status =-1;
	
	public Date getEnDate(){
		if (endDate!=null) {
			return DateUtil.getEndDate(endDate);
		}else {
			return null;
		}
	}
}
